<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/welcome' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item>权限管理</el-breadcrumb-item>
        <el-breadcrumb-item>权限列表</el-breadcrumb-item>
    </el-breadcrumb>
    <el-card>
       <el-table  :data="rightList" style="width: 100%" border stripe>
    <el-table-column type="index"> </el-table-column>
    <el-table-column label="权限名称" prop="authName" > </el-table-column>
    <el-table-column label="路径" prop="path"></el-table-column>
    <el-table-column  label="权限等级" prop="level"> </el-table-column>
  </el-table>
    </el-card>
  </div>
</template>

<script>
export default {

  data () {
    return {
        rightList:[],
    }
  },
  methods: {
      async getrights () {
         const res = await this.axios.get('rights/list')
         this.rightList = res.data;

         
      }
  },

  created () {
      this.getrights()
  }
}
</script>

<style lang='less' scoped>

</style>
